﻿///Write a program that reads a list of words, separated by spaces and prints the list in an alphabetical order.


using System;
using System.Collections.Generic;
using System.Text;


class zad24
{
    static void Main()
    {
        string strIn = "Write a program that reads a list of words, separated by spaces and prints the list in an alphabetical";
        string[] words = strIn.Split(' ', ',', '.', '!');
        
        Array.Sort(words);
        
        foreach (string word in words)
        { 
            Console.WriteLine(word);
        }
    }

}

